<%@ page import="controlecheque.ChequeTerceiros" %>



<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'valor', 'error')} required">
	<label for="valor">
		<g:message code="chequeTerceiros.valor.label" default="Valor" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="valor" step="0.01" min="0.01" required="" value="${fieldValue(bean: chequeTerceirosInstance, field: 'valor')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'numero', 'error')} required">
	<label for="numero">
		<g:message code="chequeTerceiros.numero.label" default="Numero" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="numero" required="" value="${fieldValue(bean: chequeTerceirosInstance, field: 'numero')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'cliente', 'error')} required">
	<label for="cliente">
		<g:message code="chequeTerceiros.cliente.label" default="Cliente" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cliente" name="cliente.id" from="${ceramicasoledade.Cliente.list()}" optionKey="id" required="" value="${chequeTerceirosInstance?.cliente?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'banco', 'error')} required">
	<label for="banco">
		<g:message code="chequeTerceiros.banco.label" default="Banco" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="banco" from="${controlecheque.Banco?.values()}" keys="${controlecheque.Banco.values()*.name()}" required="" value="${chequeTerceirosInstance?.banco?.name()}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'compenssado', 'error')} ">
	<label for="compenssado">
		<g:message code="chequeTerceiros.compenssado.label" default="Compenssado" />
		
	</label>
	<g:checkBox name="compenssado" value="${chequeTerceirosInstance?.compenssado}" />
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="chequeTerceiros.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" precision="day"  value="${chequeTerceirosInstance?.data}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: chequeTerceirosInstance, field: 'destino', 'error')} ">
	<label for="destino">
		<g:message code="chequeTerceiros.destino.label" default="Destino" />
		
	</label>
	<g:textField name="destino" value="${chequeTerceirosInstance?.destino}"/>
</div>

